#-------------------------------------------------------------------------------
# Name:        testZIPConverter.py
# Purpose:     Classes to test conversion of ZIP file from LibreOffice plugin to 
#              the SlideSpeech internal data structure
#       
# Authors:     John Graves <john.graves@slidespeech.com>
#
# Copyright:   (c) Slidespeech Ltd 2012
# Licence:     MIT license
#-------------------------------------------------------------------------------

import unittest

import converter

class TestZIPConverter(unittest.TestCase):
    def setUp(self):
        self._zipFile = "test/2slide-presentation.zip"
    
    def test_ZIPNotesConverter(self):
        c = converter.ZIPNotesConverter(self._zipFile, "en")
        c.convert()  
         
    def test_ZIPImageConverter(self):
        c = converter.ZIPImageConverter(self._zipFile, None)
        c.convert()
        
    def test_AudioConverter(self):
        c = converter.ZIPNotesConverter(self._zipFile, "en")
        a = converter.AudioConverter(c)
        
    def test_HTML5Converter(self):
        i = converter.ZIPImageConverter(self._zipFile)
        c = converter.ZIPNotesConverter(self._zipFile, "en",i)
        a = converter.AudioConverter(c)
        h = converter.HTML5Converter('templates/includes',a)
        h.convert()
            
if __name__ == '__main__':
    unittest.main()
        